package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户领取的优惠券
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("my_coupons")
public class MyCoupons extends Model<MyCoupons> {

    private static final long serialVersionUID = 1L;

    /**
     * 我的优惠券 id
     */
    private byte[] id;
    /**
     * 用户 id
     */
    @TableField("user_id")
    private byte[] userId;
    /**
     * 优惠券 id
     */
    @TableField("coupons_id")
    private byte[] couponsId;
    /**
     * 优惠券状态 0 = 未使用 ，1 = 已使用，2 = 已过期
     */
    @TableField("coupons_status")
    private byte[] couponsStatus;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 修改时间
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * 逻辑删除
     */
    @TableField("logic_delete")
    private byte[] logicDelete;


    public byte[] getId() {
        return id;
    }

    public void setId(byte[] id) {
        this.id = id;
    }

    public byte[] getUserId() {
        return userId;
    }

    public void setUserId(byte[] userId) {
        this.userId = userId;
    }

    public byte[] getCouponsId() {
        return couponsId;
    }

    public void setCouponsId(byte[] couponsId) {
        this.couponsId = couponsId;
    }

    public byte[] getCouponsStatus() {
        return couponsStatus;
    }

    public void setCouponsStatus(byte[] couponsStatus) {
        this.couponsStatus = couponsStatus;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public byte[] getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(byte[] logicDelete) {
        this.logicDelete = logicDelete;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MyCoupons{" +
        "id=" + id +
        ", userId=" + userId +
        ", couponsId=" + couponsId +
        ", couponsStatus=" + couponsStatus +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", logicDelete=" + logicDelete +
        "}";
    }
}
